package com.util;

import java.util.Date;

import model.Seat;

/**
 * host seat object and some digit according the row
 * 
 * @author kaloyan
 * 
 */
public class DummyDataHolder {

	private int digit;

	private Seat seat;

	private boolean locked;

	public DummyDataHolder() {

	}

	public DummyDataHolder(int digit, Seat seat) {
		this.digit = digit;
		this.seat = seat;
	}

	public int getDigit() {
		return digit;
	}

	public void setDigit(int digit) {
		this.digit = digit;
	}

	public Seat getSeat() {
		return seat;
	}

	public void setSeat(Seat seat) {
		this.seat = seat;
	}

	public boolean isLocked() {
		return new Date().before(seat.getLocked());
	}

	public void setLocked(boolean locked) {
		this.locked = locked;
	}

}
